package cn.stylefeng.guns.modular.order.service;

import cn.hutool.json.JSONObject;
import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;

import cn.stylefeng.guns.modular.basic.entity.BasicCustomer;
import cn.stylefeng.guns.modular.order.entity.WhOutOrder;
import cn.stylefeng.guns.modular.order.model.params.WhOutOrderParam;
import cn.stylefeng.guns.modular.order.model.result.WhOutOrderResult;
import cn.stylefeng.guns.modular.rest.storage.ExpressDeliveryGoods;
import cn.stylefeng.guns.sys.modular.system.entity.User;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 武汉出库订单表 服务类
 * </p>
 *
 * @author wp
 * @since 2025-09-30
 */
public interface WhOutOrderService extends IService<WhOutOrder> {

    /**
     * 新增
     *
     * @author wp
     * @Date 2025-09-30
     */
    void add(WhOutOrderParam param);

    /**
     * 删除
     *
     * @author wp
     * @Date 2025-09-30
     */
    void delete(WhOutOrderParam param);

    /**
     * 更新
     *
     * @author wp
     * @Date 2025-09-30
     */
    void update(WhOutOrderParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wp
     * @Date 2025-09-30
     */
    WhOutOrderResult findBySpec(WhOutOrderParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wp
     * @Date 2025-09-30
     */
    List<WhOutOrderResult> findListBySpec(WhOutOrderParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wp
     * @Date 2025-09-30
     */
     LayuiPageInfo findPageBySpec(WhOutOrderParam param,String condition);

    ResponseData saveJstOutOrder(JSONObject jsonObject1, User user, BasicCustomer byId);
    WhOutOrderResult findbyoutOrderNumberByDeptId(String customerNumber, String outOrderNumber, Long deptId);

    List<ExpressDeliveryGoods> findExpressDeliveryGoodsListBySpec(String[] expressDelivery, int outStorehouseId);
}
